////package com.yksj.healthtalk.ui.friend;
////
////import java.util.ArrayList;
////
////import android.app.Activity;
////import android.content.Intent;
////import android.os.Bundle;
////import android.view.View;
////import android.view.View.OnClickListener;
////import android.widget.AdapterView;
////import android.widget.AdapterView.OnItemClickListener;
////import android.widget.GridView;
////
////import com.yksj.healthtalk.R;
////import com.yksj.healthtalk.adapter.InterestAdapter;
////import com.yksj.healthtalk.utils.StringFormatUtils;
////
////public class AttentionUI extends Activity implements OnClickListener {
////	private GridView selected;
////	private GridView mGridview;
////	//总的
////	private ArrayList<String> newlist;//已有的
////	private ArrayList<String> mNewList1;//总的
////	private InterestAdapter adapter;
////	private final int CODE_ATT = 010;
////
////	@Override
////	protected void onCreate(Bundle savedInstanceState) {
////		super.onCreate(savedInstanceState);
////		setContentView(R.layout.salon_select_interest);
////		init();
////		
////		
////		if(mNewList1.size()!=0)
//////		mGridview.setAdapter(new InterestAdapter(this,  mNewList1,R.layout.textiterm,false));
////		selected=(GridView)findViewById(R.id.selected);
////		
//////		adapter = new InterestAdapter(this, newlist,R.layout.textiterm,false);
////		
////		mGridview.setOnItemClickListener(new OnItemClickListener() {
////			@Override
////			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
////					long arg3) {
////				if(newlist.contains(mNewList1.get(arg2)))return;
////				newlist.add(mNewList1.get(arg2));
////				adapter.notifyDataSetChanged();
////			}
////		});
////		selected.setAdapter(adapter);
////		selected.setOnItemClickListener(new OnItemClickListener() {
////			@Override
////			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
////					long arg3) {
////				newlist.remove(arg2);
////				adapter.notifyDataSetChanged();
////			}
////		});
////	}
////
////	private void init() {
////		newlist=getIntent().getStringArrayListExtra("items");
////		mGridview=(GridView)findViewById(R.id.gridview);
////		String[] mArrays = getResources().getStringArray(R.array.interest_im);
//////		mNewList1=StringFormatUtils.ArrayToArrayList(mArrays);
////		findViewById(R.id.title_right).setBackgroundResource(R.drawable.title_ok);
////		findViewById(R.id.title_back).setOnClickListener(this);
////		findViewById(R.id.title_right).setOnClickListener(this);
////		
////	}
////
////	@Override
////	public void onClick(View v) {
////		switch (v.getId()) {
////		case R.id.title_back:
////			onBackPressed();
////			break;
////	    case R.id.title_right:
////			Intent intent=new Intent(AttentionUI.this,FindConditionUI.class);
////			intent.putStringArrayListExtra("items", (ArrayList<String>) newlist);
////			setResult(CODE_ATT, intent);
////			AttentionUI.this.finish();
////			break;
////
////		}
////		
////	}}

